<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="__STATIC__/js/mui.min.js"></script>
    <link href="__STATIC__/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/icons-extra.css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__/css/app.css"/>
		<style>
			.flex-container {
				display: -webkit-box;
				display: -webkit-flex;
				display: flex;
				-webkit-flex-flow: row wrap;
				justify-content: space-between;
				text-align: center;
			}
			
			.mui-content-padded {
				padding: 10px;
			}
			
			.mui-content-padded a {
				margin: 3px;
				width: 50px;
				height: 50px;
				display: inline-block;
				text-align: center;
				background-color: #fff;
				border: 1px solid #ddd;
				border-radius: 25px;
				background-clip: padding-box;
			}
			
			.mui-content-padded a .mui-icon-extra {
				margin-top: 12px;
			}
			
			.mui-spinner,
			.mui-spinner-white {
				margin-top: 12px
			}
			
			.active .mui-spinner-indicator {
				background: #007AFF;
			}
			
			.mui-content a {
				color: #8F8F94;
			}
			
			.mui-content a.active {
				color: #007aff;
			}
			img
			{
				width:80%;
				margin-left:10%;
			}
		</style>
</head>
<body>
		<header class="mui-bar mui-bar-nav">
			<a class=" mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.go(-1);"></a>
			<h1 class="mui-title">通知详情</h1>
		</header>
	<div class="mui-content">
		<div class="mui-card">
			<div class="mui-card-content">
				<div class="mui-card-content-inner">
					<p><center>{$ac.0.title}</center></p>
					<p style="text-indent: 2em;">{$ac.0.content|htmlspecialchars_decode}</p>
			</div>
			</div>
		</div>
	</div>
<!-- >	<div class="mui-card">
		<div class="mui-input-row" style="margin: 10px 5px;">
		<form id="com" method="post" action="{:\\think\\Url::build('/index/Read/insert')}">
			<input type="hidden" name='activity_id' value="{$ac.0.id}" >
			<textarea id="textarea" rows="5" name='comment' placeholder="请输入您的评论"></textarea>
			<button type="SUBMIT" class="mui-btn mui-btn-primary" style="margin-top:-12px;" onclick="ajaxPost();">发表</button>
		</form>
		</div>
	</div>
	 -->		
		
</body>
<script>
    function ajaxPost(){
        var formData = $("#com").serialize();
        $.ajax({
            type:"post",
            url:"{:\\think\\Url::build('/index/Read/insert')}",
            data:formData,//这里data传递过去的是序列化以后的字符串
            success:function(result,comment){
                alert(result.result);//获取成功以后输出返回值
            }

        });
        }
</script>
<script type="text/javascript" charset="utf-8">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			var active = null,
				lastid, span;
			mui(".mui-content").on("tap", "a", function() {
				var id = this.getAttribute("id");
				if(!active) {
					this.classList.add("active");
					if(id) {
						span = this.querySelector("span");
						span.classList.remove("mui-" + id);
						span.classList.add("mui-" + id + "-filled");
					}
					active = this;
				} else {
					active.classList.remove("active");
					if(lastid) {
						span.classList.remove("mui-" + lastid + "-filled");
						span.classList.add("mui-" + lastid);
					}

					this.classList.add("active");
					if(id) {
						span = this.querySelector("span");
						span.classList.remove("mui-" + id);
						span.classList.add("mui-" + id + "-filled");
					}

					active = this;
				}
				lastid = id;
			});
		</script>
</html>



